const randomCode = new Map();


export const getCode = (mobile) => {
    return randomCode.get(mobile);
}

export const setCode = (mobile, code) => {
    randomCode.set(mobile, {
        code,
        time: new Date().getTime()
    });
}
